From c5ae50df419e4f483963cccec9be476358bf2efd Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 7 May 2009 20:02:20 +0000 Subject: [PATCH] Don't explicitly check for false. Most modules without params return an empty array rather than false, in which case we still don't want to output this. --- includes/api/ApiBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiBase.php b/includes/api/ApiBase.php index 4f86832f1a..990b8e66c6 100644 --- a/includes/api/ApiBase.php +++ b/includes/api/ApiBase.php @@ -272,7 +272,7 @@ abstract class ApiBase { */ public function makeHelpMsgParameters() { $params = $this->getFinalParams(); - if ($params !== false) { + if ( $params ) { $paramsDescription = $this->getFinalParamDescription(); $msg = ''; -- 2.20.1